package com.itheima.homework1.demo2;

public class Test {
    public static void main(String[] args) {
        Employee e1 = new Manager("v001", "张三", 13000);
        e1.eat();
        e1.work();
        System.out.println("----------------------");
        Employee e2 = new Cook("p001", "小李", 7000);
        e2.eat();
        e2.work();
    }
}
